namespace Lzfy_His_Service.Services
{
    /// <summary>
    /// 数据库配置服务接口
    /// </summary>
    public interface IDatabaseConfigurationService
    {
        /// <summary>
        /// 获取默认SQL Server连接字符串
        /// </summary>
        string GetDefaultConnection();

        /// <summary>
        /// 获取HIS Oracle连接字符串
        /// </summary>
        string GetHisOracleConnection();

        /// <summary>
        /// 获取指定名称的连接字符串
        /// </summary>
        /// <param name="connectionName">连接字符串名称</param>
        /// <param name="defaultValue">默认值</param>
        /// <returns></returns>
        string GetConnectionString(string connectionName, string defaultValue = "");

        /// <summary>
        /// 验证连接字符串是否配置
        /// </summary>
        /// <param name="connectionName">连接字符串名称</param>
        /// <returns></returns>
        bool IsConnectionConfigured(string connectionName);
    }
}